#include "Node.h"
#include "NodeVisitor.h"
namespace sl
{	
	Node::Node(void)
	{
	}

	Node::~Node(void)
	{
	}


	void Node::SetParent( sl::GroupNode * pParent )
	{
		m_vParents.push_back( pParent );	
	}

	void Node::RemoveFromParent( sl::GroupNode * pParent )
	{
		ParentList::iterator parentit = std::find( m_vParents.begin(), m_vParents.end(), pParent  );
		if ( parentit != m_vParents.end() )
		{
			m_vParents.erase( parentit );
		}
	}
}
